package com.xc.quickstart.common.context;

import java.util.HashMap;
import java.util.Map;

public class CommonContext {
    public static class VALID_STATUS {
        public static final Integer ENABLE = 1;
        public static final Integer DISABLE = 0;
        public static final Integer DELETE = -1;
    }

    public static final Integer DAY_MINUTES = 24 * 60;
    public static final Integer PAGE_SIZE_1000 = 1000;
    public static final Integer PAGE_SIZE_2000 = 2000;

    public static final Double ROUND_NUM = 1000.0;
    public static final String METER = "m";
    public static final String KILO_METER = "km";

    public static final String SUCCESS_OK = "200";

    public static final String DEFAULT_TIME = "2021-00-00 00:00:00";

    public static final String ERROR_TIME = "0000-00-00 00:00:00";

    // 黑名单验证类型：团长手机号
    public static final Integer DEFAULT_OPEN_LIMIT = 2;
    public static final Integer PHONE_BLACK_JUDGE_CODE = 2;

    public static final String SYSTEM_USER = "系统";
    public static final Integer SYSTEM_USER_ID = 0;

    public static final String BLANK_STRING = "";
    public static final String SEMICOLON = ";";
    public static final String VERTICAL_LINE = "|";
    public static final String BAR_LINE = "-";
    public static final String COMMA = ",";

    //社区的范围
    public static final Integer COMMUNTITY_AREA = 1000;

    public static final String YYYYMMDD = "yyyyMMdd";
    public static final String YYYY_MM_DD = "yyyy-MM-dd";
    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";

    public static class MERCHANT {
        public static final Integer SU_ZHOU = 6001;
        public static final Integer GUANG_ZHOU = 8001;
        public static final Integer HU_NAN = 9001;
    }

    public static final Map<String, String> MERCHANT_MAP = new HashMap<>();

    static {
        MERCHANT_MAP.put(MERCHANT.SU_ZHOU.toString(), "苏州中心");
        MERCHANT_MAP.put(MERCHANT.GUANG_ZHOU.toString(), "广州中心");
        MERCHANT_MAP.put(MERCHANT.HU_NAN.toString(), "湖南中心");
    }


    public static final String SYSTEM_AUTO_DISTRIBUTE = "自动分单员";

    public static class DATA_SOURCE_DESC {
        public static final String SYSTEM_AUTO_DISTRIBUTE = "系统分配";
        public static final String CUSTOMER_DISTRIBUTE = "团长创建";
        public static final String ADMIN_DISTRIBUTE = "市场经理创建";
    }

    public static class PROTECT_STATUS_DESC {
        public static final String NO = "该社区未设保护";
        public static final String OK = "该社区已设保护，不可再开团";
    }

    public static class AREA_TYPE {
        public static final Integer CITY_TYPE = 1;
        public static final Integer DISTRICT_TYPE = 1;
    }

    /**
     * 图片表业务类型  1 错误上报   3 团长解约
     */
    public static class IMGE_BUSINESS_TYPE {
        public static final Integer FEEDBACK = 1;
        public static final Integer BREAKING = 3;
    }


    /**
     *  团长介绍状态 0 ：直签  1：转介绍
     */
    public static class RECOMMEND_STATUS_TYPE {
        public static final Integer RECOMMEND_STATUS_DIRECT = 0;
        public static final Integer RECOMMEND_STATUS_INSTRUCTION = 1;
    }

    public static final Map<Integer, String> DISTRIBUTE_MANTAG_MAP = new HashMap<>();

    static {
        DISTRIBUTE_MANTAG_MAP.put(1, "被占用");
        DISTRIBUTE_MANTAG_MAP.put(2, "兼职");
        DISTRIBUTE_MANTAG_MAP.put(3, "业主");
        DISTRIBUTE_MANTAG_MAP.put(4, "店主");
        DISTRIBUTE_MANTAG_MAP.put(5, "租客");
        DISTRIBUTE_MANTAG_MAP.put(6, "宝妈");
        DISTRIBUTE_MANTAG_MAP.put(7, "掌柜");

    }

    /**
     * 资料完整性
     */
    public static class DATA_COMPLETE {
        public static final Integer NO = 0;
        public static final Integer OK = 2;
    }
}
